<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="Wlui/css/word.css">
<div class="row">
    <h1 class="toutiao">头条新闻</h1>
    <div class="col-xs-12 col-md-8 col-md-offset-1 news-box">
        <ul class="news-list">
            {{#each comments}}
            <li class="news-content">
                <h3 class="title"><a href="/main/{{_id}}">{{title}}</a></h3><span class="update-time">{{updateTime}}</span>
                <p class="content">{{{content}}}</p>
            </li>
            {{/each}}
        </ul>
    </div>
</div>
<script>
    $(".update-time").each(function () {
        var time = $(this).text();
        $(this).text(moment(time).format("YYYY-MM-DD"));
    })

</script>